package com.xunce.xcworkservice.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * @ClassName: RolePermissionDto
 * @Author: yanlong.guo
 * @Date: 2024/1/3 17:23
 */
@Data
@Schema(description = "角色权限类")
public class RolePermissionDto {

    @Schema(description = "角色id不能为空")
    @NotNull
    private Integer roleId;

    @Schema(description = "权限id集合")
    @NotNull
    private List<Integer> permission;
}
